﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KWT.DRG_DIP.DTO.Settlement.List
{
    /// <summary>
    /// 分组结果
    /// </summary>
    public class OutGpResult
    {
        /// <summary>
        /// 编码
        /// DIP:病种编码，主诊编码:主手编码_其他手术编码(多个手术以+分割)_辅助目录编码
        /// DRG:drg编码
        /// </summary>
        public string code { get; set; }

        /// <summary>
        /// 名称 
        /// DIP:病种名称，主诊名称:主手名称_其他手术名称(多个手术以+分割)_辅助目录名称
        /// </summary>
        public string name { get; set; }

        /// <summary>
        /// 标准分型名称
        /// DIP使用
        /// </summary>
        public string assistName { get; set; } = "";

        /// <summary>
        /// 高倍率
        /// </summary>
        public decimal rateUp { get; set; }
        /// <summary>
        /// 低倍率
        /// </summary>
        public decimal rateDownn { get; set; }

        #region 从病患信息中获取
        /// <summary>
        /// 截止当前金额合计 ,必填
        /// </summary>
        public Decimal totalCost { get; set; }
        /// <summary>
        /// 医保类型 0无医保1职工2居民 ,必填
        /// </summary>
        public int insuedType { get; set; }
        /// <summary>
        /// 截止当前实际住院天数,必填
        /// </summary>
        public int inDays { get; set; }
        #endregion

        #region 分组结果直接返回
        /// <summary>
        /// 分值(病种)
        /// DRG:权重,DIP:分值
        /// </summary>
        public decimal socre { get; set; }
        /// <summary>
        /// 住院天数标杆值(天)
        /// </summary>
        public decimal daysBenchmark { get; set; }

        /// <summary>
        /// 特殊标签:基础病组等
        /// </summary>
        public string specialLabels { get; set; }
        #endregion

        #region 根据查询结果进行计算

        /// <summary>
        /// 点值:居民点值，职工点值，依据insuedType区分
        /// DRG:费率,DIP:点值
        /// </summary>
        public decimal point { get; set; }

        /// <summary>
        /// 付费标准:职工付费标准，居民付费标准，根据insuedType赋值
        /// </summary>
        public decimal benchmark { get; set; }

        /// <summary>
        /// 倍率:当前费用/标杆值
        /// </summary>
        public decimal rate { get; set; }


        /// <summary>
        /// 倍率描述：高倍率，低倍率
        /// </summary>
        public string rateDes { get; set; }

        /// <summary>
        /// 费用结余：付费标杆-当前费用
        /// </summary>
        public Decimal balance { get; set; }

        #endregion

    }
}
